import React, { Component } from 'react'

const axios = require('axios')

class App extends Component {
  async componentDidMount() {
    await axios
      .get('http://127.0.0.1:3001')
      .then(res => console.log(res))
      .catch(err => console.log(err))
  }

  render() {
    return <h1>Hello Cors</h1>
  }
}

export default App
